package com.ruoyi.ihome.mapper;

import java.util.List;
import com.ruoyi.ihome.domain.Facility;
import org.apache.ibatis.annotations.Mapper;

/**
 * 房间设施表Mapper接口
 * 
 * @author mage
 * @date 2024-08-14
 */
@Mapper
public interface FacilityMapper 
{
    /**
     * 查询房间设施表
     * 
     * @param facilityId 房间设施表主键
     * @return 房间设施表
     */
    public Facility selectFacilityByFacilityId(Long facilityId);

    /**
     * 查询房间设施表列表
     * 
     * @param facility 房间设施表
     * @return 房间设施表集合
     */
    public List<Facility> selectFacilityList(Facility facility);

    /**
     * 新增房间设施表
     * 
     * @param facility 房间设施表
     * @return 结果
     */
    public int insertFacility(Facility facility);

    /**
     * 修改房间设施表
     * 
     * @param facility 房间设施表
     * @return 结果
     */
    public int updateFacility(Facility facility);

    /**
     * 删除房间设施表
     * 
     * @param facilityId 房间设施表主键
     * @return 结果
     */
    public int deleteFacilityByFacilityId(Long facilityId);

    /**
     * 批量删除房间设施表
     * 
     * @param facilityIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFacilityByFacilityIds(Long[] facilityIds);
}
